<form>
  <h2 mat-dialog-title>{{title}}:</h2>
  <div mat-dialog-content>
    <mat-input-container class="full-width">
      <input matInput type="text" placeholder="任务内容">
    </mat-input-container>
    <mat-radio-group>
      <mat-radio-button *ngFor="let priority of prioritys" [value]="priority.value">
        {{priority.label}}
      </mat-radio-button>
    </mat-radio-group >

    <mat-form-field class="full-width">
      <input matInput [matDatepicker]="dueDatepicker" placeholder="任务截至日期">
      <mat-datepicker-toggle matSuffix [for]="dueDatepicker"></mat-datepicker-toggle>
      <mat-datepicker #dueDatepicker></mat-datepicker>
    </mat-form-field>

    <mat-form-field  class="full-width">
      <input matInput [matDatepicker]="remindexDatepicker" placeholder="提醒日期">
      <mat-datepicker-toggle matSuffix [for]="remindexDatepicker"></mat-datepicker-toggle>
      <mat-datepicker #remindexDatepicker></mat-datepicker>
    </mat-form-field>

  </div>
  <div mat-dialog-actions>
    <button mat-raised-button type="button" color="primary" (click)="onClick()">保存</button>
    <button mat-button mat-dialog-close type="button">关闭</button>
  </div>
</form>
